package Day3Demo;

/**
 * @author PHUNG Nam Can - NakanPhung
 * @mail cank56hua@gmail.com
 * @date Jul 22, 2013 7:00:30 PM
 * @project Day3Demo
 * @file Circle.java
 */

public class Circle {
	public float radius = 0;
	public static final float PI = 3.14F;

	public Circle(float r) {
		this.radius = r;
	}

	public static void main(String[] args) {
		Circle c1 = new Circle(10.3F);
		Circle c2 = new Circle(5.7F);

		System.out.println("\n C1 radius = " + c1.radius);
		System.out.println("\n C1 PI = " + c1.PI);

		System.out.println("\n C2 radius = " + c2.radius);
		System.out.println("\n C2 PI = " + c2.PI);

		System.out.println("\n PI = " + Circle.PI);

		c1.radius = 16.2F;
		// c1.PI = 7.6F;

		System.out.println("\n C1 radius = " + c1.radius);
		System.out.println("\n C1 PI = " + c1.PI);

		System.out.println("\n C2 radius = " + c2.radius);
		System.out.println("\n C2 PI = " + c2.PI);

	}

}
